import getters from './getters'
import app from './modules/app'
import user from './modules/user'
import settings from './modules/settings'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import { createStore, createLogger } from 'vuex'
const debug = process.env.NODE_ENV !== 'production'
export default createStore({
  modules: {
    app,
    user,
    settings,
    tagsView,
    permission
  },
  getters,
  strict: debug,
  plugins: debug ? [createLogger()] : []
})
